﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DXWinFormDataAnalysis.DataModel
{
    /// <summary>
    /// NameNode统计分析数据
    /// </summary>
    public class NameNodeStatistics
    {

        /// <summary>
        /// 获取唯一标识符
        /// </summary>
        //  public UInt64 ID { get { return DFSUtils.GetHash(Ip + ":" + RpcPort); } }

        public String ServerName { set; get; }
        public String Ip { set; get; }
        public int RpcPort { set; get; }
        public int AgentRpcPort { set; get; }
        public long LastUpdateTime { set; get; }
        public DateTime StatisticTime { set; get; }

        /// <summary>
        /// DataNodeCenter中活动节点的数目
        /// </summary>
        public int DataNodeCount { set; get; }

        /// <summary>
        /// DataNodeCenter中不可达节点的数目
        /// </summary>
        public int UnreachDataNodeCount { set; get; }



        /// <summary>
        /// BlockMap中的Block数目
        /// </summary>
        public int BlockCount { set; get; }

        public string Cpu { get; set; }
        public string Memory { get; set; }
        public string HardDiskRate { get; set; }
        public string HardDiskSize { get; set; }
        public string NodeType { set; get; }


    }
}
